<include file="Public:header" />
			<include file="Public:menu" />
			<div id="right">
				<div class="top">
				</div>
				<div id="right_left">
					<div id="myfacephoto">
						<a href="__URL__/face"><img id="big_face" src="__PUBLIC__/Uploads/face/big/{$userInfo['faceimg']}"/></a>
						<p><a href="__APP__/setting/face">更换头像</a></p>
						<p><a href="__APP__/photo/showtag/u/{$userInfo['id']}">被圈的相片</a></p>
						<?php if ($userInfo['id'] == $myId){ ?>
							<p><a href="__APP__/setting">编辑我的资料</a></p>
						<?php }else{ ?>
							<p><a href="__APP__/write/{$userInfo['id']}">发送私信</a></p>
							<p><a href="__APP__/hello/{$userInfo['id']}" class="sayhello">打招呼</a></p>
							<?php 
								if($isFriend == "no"){
							 ?>
								<p><a href="__APP__/addfriend/{$userInfo['id']}" class="friendaction">加为好友</a></p>
							<?php 
								}elseif($isFriend == "yes"){
							 ?>
								<p><a href="__APP__/delfriend/{$userInfo['id']}" class="delfriend">删除好友</a></p>
							<?php 
								}else{
							 ?>
								<p><a href="__APP__/rmfriend/{$userInfo['id']}" class="delfriend">已发送申请,取消申请?</a></p>
							<?php 
								}
							}
						 ?>

					</div>
					<?php 
						if(($userData["friendCount"]) > 0){
					 ?>
					<div id="myfriends">
						<div class="app_title">
							好友
						</div>
						<div class="app_title2">
							&nbsp;&nbsp;{$userData["friendCount"]}个好友	<p class="all"><a href="__APP__/friends/{$userInfo['id']}">所有好友</a></p>	
						</div>
						<div class="app_body">
							<div class="friend_div">
								<ul>
									<volist name="friendList" id="friend">
									<li>
										<a href="__APP__/home/{$friend['friendid']}">
										<img src="__PUBLIC__/Uploads/face/small/{$friend['faceimg']}"/>
										<br/>{$friend['username']}
										</a>
									</li>
									</volist>

								</ul>
							</div>
						</div>
					</div>
					<?php 
					}
						if(($userData['shareCount']) != 0){
					 ?>

					<div id="myshare">
						<div class="app_title">
							分享
						</div>
						<div class="app_title2">
							&nbsp;&nbsp;{$userData['shareCount']}个分享 <p class="all"><a href="__APP__/shares/{$userInfo['id']}">所有分享</a></p>
						</div>
						<div class="app_body">
							<ul>
								<volist name="shareList" id="share">
								<li class="app_li">
									<img src="../Public/images/feed/{$share['module']}.gif"/> <?php echo getShare($share['module'],$share['moduleid'],$share['shareurl']) ?><span class="li_time">{$share['regtime']|toDate}</span>
								</li>
								</volist>
							</ul>
						</div>
					</div>
					<?php 
									}
					 ?>
					<?php 
						if(($userData['groupCount']) > 0){
					 ?>

					<div id="mygroup">
						<div class="app_title">
							群组
						</div>
						<div class="app_title2">
							&nbsp;&nbsp;{$userData['groupCount']}个群组 <p class="all"><a href="__APP__/groups/{$userInfo['id']}">所有群组</a></p>
						</div>
						<div class="app_body">
							<volist name="groupList" id="group">
								<a href="__APP__/showgroup/{$group['groupid']}">{$group['groupid']|getField="groups","name",###}</a>，
							</volist>
						</div>
					</div>
					<?php 
						}
					 ?>
					<?php 
						if(($userData['miniCount']) != 0){
					 ?>

					<div id="myminiblog">
						<div class="app_title">
							迷你博客
						</div>
						<div class="app_title2">
						&nbsp;&nbsp;{$userData['miniCount']}个迷博 <p class="all"><a href="__APP__/minis/{$userInfo['id']}">所有迷博</a></p>
						</div>
						<div class="app_body">
							<ul>
								<volist name="miniList" id="mini">
								<li class="app_li">
									{$mini['content']}<span class="li_time">{$mini['regtime']|toDate}</span>
								</li>
								</volist>
							</ul>
						</div>
					</div>
					<?php 
						}
					 ?>
				</div>
				<div id="right_right">
					<div>
						<div id="user_name">
							{$userInfo['username']}
						</div>
						<div id="user_base_info">
							<ul>
								<li><span class="ubi">网&nbsp;&nbsp;&nbsp;络：</span> <span class="ubi2"><a href="__APP__/network/{$userInfo['network_city']}">{$userInfo['network_city']}</a> <a href="__APP__/network/{$userInfo['network_zone']}">{$userInfo['network_zone']}</a></span></li>
								<notequal name="userInfo['sex']" value="">
								<li><span class="ubi">性&nbsp;&nbsp;&nbsp;别：</span> <span class="ubi2">{$userInfo['sex']}</span></li>
								</notequal>
								<notequal name="userInfo['birthday']" value="">
								<li><span class="ubi">生&nbsp;&nbsp;&nbsp;日：</span> <span class="ubi2"><?php echo toDate($userInfo['birthday'],$userInfo['birthday_mode']); ?></span></li>
								</notequal>
								<notequal name="userInfo['star']" value="">
								<li><span class="ubi">星&nbsp;&nbsp;&nbsp;座：</span> <span class="ubi2"><a href="__APP__/star/{$userInfo['star']}">{$userInfo['star']}</a></span></li>
								</notequal>
								<notequal name="userInfo['hometown_city']" value="">
								<li><span class="ubi">家&nbsp;&nbsp;&nbsp;乡：</span> <span class="ubi2"><a href="__APP__/hometown/{$userInfo['hometown_city']}">{$userInfo['hometown_city']}</a> <a href="__APP__/hometown/{$userInfo['hometown_city']}/{$userInfo['hometown_zone']}">{$userInfo['hometown_zone']}</a></span></li>
								</notequal>
							</ul>
						</div>
					</div>
					<div>
						<div class="app_title3 strong">
							&nbsp;&nbsp;个人动态
						</div>
						<div class="app_title4">
							&nbsp;&nbsp;{$userData['feedCount']}个动态 <p class="all"><a href="__APP__/feed/{$userInfo['id']}">所有动态</a><p>
						</div>
						<div class="app_body2">
							<div class="feedlist">
								<ul>
									<volist name="feedList" id="feed" empty="还没有任何动态">
									<li class="app_right">
										<a class="feedimg" href="__APP__/feed/{$userInfo['id']}/{$feed['module']}"><img src="../Public/images/feed/{$feed['module']}.gif"/></a>
										<?php 
											echo getModule($feed['userid'],$feed['module'],$feed['moduleid'],$feed['content'],$myId,$feed['requestid'],$feed['count'],$feed['regtime']);
											if ($userInfo['id'] == $myId){
										 ?>
										<a class="feeddel" href="__APP__/focus/delfeed/id/{$feed['id']}">X</a>
										<?php } ?>
									</li>
									</volist>
								</ul>				
							</div>
						</div>
					</div>
					
					<?php 
						if(($userData['albumCount']) != 0){
					 ?>
					<div>
						<div class="app_title3 strong">
							&nbsp;&nbsp;相册
						</div>
						<div class="app_title4">
							&nbsp;&nbsp;{$userData['albumCount']}个相册 <p class="all"><a href="__APP__/photos/{$userInfo['id']}">所有相册</a></p>
						</div>
						<div class="app_body2">
							<div class="photo_list2">
								<ul>
									<volist name="albumList" id="album">
									<li>
										<div class="photo_img">
											<a href="__APP__/showalbum/{$album['id']}">
											<img src="__PUBLIC__/Uploads/photo/small/{$album['defaultphoto']}"/>
											</a>
										</div>
										<div class="photo_desc">
										<p class="strong text14">
										<a href="__APP__/showalbum/{$album['id}">{$album['name']}</a>
										</p>
										<p>
											共{$album['photonum']}张
										</p>
										<p>更新于{$album['modifytime']|toDate=###,"y-m"}</p>
										</div>
									</li>
									</volist>
								</ul>
							</div>
						</div>
					</div>
					<?php 
						}
					 ?>
					<?php 
						if(($userData['blogCount']) != 0){
					 ?>
					<div>
						<div class="app_title3 strong">
							&nbsp;&nbsp;日志
						</div>
						<div class="app_title4">
							&nbsp;&nbsp;{$userData['blogCount']}个日志 <p class="all"><a href="__APP__/blogs/{$userInfo['id']}">所有日志</a></p>
						</div>
						<div class="app_body2">
							<ul>
								<volist id="blog" name="blogList" >
								<li class="app_li"><a href="__APP__/showblog/{$blog['id']}">{$blog['title']}</a> <span class="li_time">{$blog['regtime']|toDate}</span> <a href="__APP__/showblog/{$blog['id']}#postrevert">{$blog['revertnum']}个评论</a></li>
								</volist>
							</ul>
						</div>
					</div>
					<?php 
						}
					 ?>
					<div>
						<div class="app_title3 strong">
							&nbsp;&nbsp;个人资料
						</div>
						<div class="app_body2">
							<ul>
								<?php 
									if(getRank($userInfo['id'],$myId,"workinfo")){
									if(!empty($userHEdu) || !empty($userMEdu)){
								 ?>
								<li>
									<p class="info_title">学校信息</p>
									<volist name="userHEdu" id="hs">
									<p class="info_content">
										<label><?php $i==1?print "大学:" : print "&nbsp;"; ?></label>	
										{$hs['school_name']} - {$hs['department']} ({$hs['regtime']}入学)	
									</p>
									</volist>
									<volist name="userMEdu" id="ms">
									<p class="info_content">
										<label><?php $i==1?print "高中:" : print "&nbsp;"; ?></label>
										{$ms['school_name']}  ({$ms['regtime']}入学)
									</p>
									</volist>
								</li>
								<?php 
									}
									if(!empty($userWork)){
								 ?>
								<li>
									<p class="info_title">公司信息</p>
									<volist name="userWork" id="w" empty="没有信息">
									<p class="info_content">
										<label><?php $i==1?print "公司:" : print "&nbsp;"; ?></label>	
										{$w['company']}  ({$w['starttime']|toYmd} - {$w['endtime']|toYmd})	
									</p>
									<p class="info_content">
										<label>&nbsp</label>	
										<span class="li_time">{$w['desc']}</span>
									</p>
									</volist>
								</li>
								<?php 
									}
									}
									
								 ?>
								<li>
									<p class="info_title">联系信息</p>
									<?php 
										if(getRank($userInfo['id'],$myId,"other",$userContact['emailsetting']) ){
									 ?>
									<p><label>Email:</label>{$userInfo['email']}</p>
									<?php 
										}
										if(""!=$userContact['qq'] && getRank($userInfo['id'],$myId,"other",$userContact['qqsetting'])){
									 ?>
									<p><label>QQ:</label>{$userContact['qq}</p>
									<?php 
										}
										if(""!=$userContact['msn'] && getRank($userInfo['id'],$myId,"other",$userContact['msnsetting'])){
									 ?>
									<p><label>MSN:</label>{$userContact['msn']}</p>
									<?php 
										}
										if(""!=$userContact['gtalk'] && getRank($userInfo['id'],$myId,"other",$userContact['gtalksetting'])){
									 ?>
									<p><label>GTalk:</label>{$userContact['talk']}</p>
									<?php 
										}
										if(""!=$userContact['skype'] && getRank($userInfo['id'],$myId,"other",$userContact['skypesetting'])){
									 ?>
									<p><label>Skype:</label>{$userContact['skype']}</p>
									<?php 
										}
										if(""!=$userContact['mobile'] && getRank($userInfo['id'],$myId,"other",$userContact['mobilesetting'])){
									 ?>
									<p><label>手机:</label>{$userContact['mobile']}</p>
									<?php 
										}
										if(""!=$userContact['tel'] && getRank($userInfo['id'],$myId,"other",$userContact['telsetting'])){
									 ?>
									<p><label>电话:</label>{$userContact['tel']}</p>
									<?php 
										}
										if(""!=$userContact['address'] && getRank($userInfo['id'],$myId,"other",$userContact['addresssetting'])){
									 ?>
									<p><label>地址:</label>{$userContact['address']}</p>
									<?php 
										}
										if(""!=$userContact['homepage'] && getRank($userInfo['id'],$myId,"other",$userContact['homepagesetting'])){
									 ?>
									<p><label>个人主页:</label><a href="{$userContact['homepage']}" target="_blank">{$userContact['homepage']}</a></p>
									<?php 
										}
									 ?>
								</li>
								<?php 
									if(getRank($userInfo['id'],$myId,"myinfo")){
								 ?>
								<li>
									<p class="info_title">个人爱好</p>
									<?php if(""!=$userIntro['interests']){ ?>
									<p><label>兴趣与爱好:</label>{$userIntro['interests']}</p>
									<?php }if(""!=$userIntro['musics']){ ?>
									<p><label>喜欢的音乐:</label>{$userIntro['musics']}</p>
									<?php }if(""!=$userIntro['movies']){ ?>
									<p><label>喜欢的电影:</label>{$userIntro['movies']}</p>
									<?php }if(""!=$userIntro['cartoons']){ ?>
									<p><label>喜欢的动漫:</label>{$userIntro['cartoons']}</p>
									<?php }if(""!=$userIntro['games']){ ?>
									<p><label>喜欢的游戏:</label>{$userIntro['games']}</p>
									<?php }if(""!=$userIntro['sports']){ ?>
									<p><label>喜欢的运动:</label>{$userIntro['sports']}</p>
									<?php }if(""!=$userIntro['books']){ ?>
									<p><label>喜欢的书籍:</label>{$userIntro['books']}</p>
									<?php }if(""!=$userIntro['adage']){ ?>
									<p><label>颀赏的话:{</label>$userIntro['adage']}</p>
									<?php }if(""!=$userIntro['icon']){ ?>
									<p><label>颀赏的人:</label>{$userIntro['icon']}</p>
									<?php }if(""!=$userIntro['intro']){ ?>
									<p><label>自我描述:</label>{$userIntro['intro']}</p>
									<?php } ?>
								</li>
								<?php 
									}
								 ?>
							</ul>
						</div>
					</div>
					<a name="guest"></a>
					<div>
						<div class="app_title3 strong">
							&nbsp;&nbsp;留言版
						</div>
						<div class="app_title4">
							&nbsp;&nbsp;{$userData['guestCount']}个留言 <p class="all"><a href="__APP__/guests/{$userInfo['id']}">所有留言</a></p>
						</div>
						<div class="app_body2">
							<?php 
								if ($userInfo['id'] != $myId){
							 ?>
							<div class="guest_input">
								<form id="guestform" action="__APP__/guest/insert" method="POST">
									<textarea cols="42" rows="5" class="textarea" id="guestcontent" name="content"></textarea>
									<br/>
									<input type="hidden" value="{$userInfo['id']}" id="userid" name="userid"/>
									<input type="submit" value="留言" class="input2"/>
								</form>
							</div>
							<?php 
								}
							 ?>
							<div>
							<ul id="guestlist">
								<volist name="guestList" id="guest">
								<li class="guest">
									<div>
										<div class="guestface">
											<a href="__APP__/home/{$guest['guestid']}"><img src="__ROOT__/Public/Uploads/face/small/{$guest['faceimg']}"/></a>
										</div>
										<div class="guestcontent">
											<div class="app_title3" style="background-color:#e6e6e6"><a href="__APP__/home/{$guest['guestid']}">{$guest['username']}</a> <span class="li_time">{$guest['regtime']|toDate}</span>
											<a href="__APP__/home/{$guest['guestid']}#guest">回复</a>  
											<a href="__APP__/guests/{$guest['userid}/t/{$guest['guestid']}">对话录</a></div>
											<div class="content">{$guest['content']}</div>
										</div>
									</div>
								</li>
								</volist>
							</ul>
							<div>
						</div>
					</div>				
				</div>
			</div>
		</div>
		<div class="share"> 
					<a class="addshare" rel="facebox" href="__APP__/share/addshare/g/home/u/{$userInfo['id']}"><img src="../Public/images/share.gif"/></a>
				</div>
<include file="Public:footer" />
